/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package TransportLayer;

import DataModel.NotaryCertificate;
import org.joda.time.JodaTimePermission;

/**
 *
 * @author Tomasz Nowak
 */
public class NotaryResponse
{
	private NotaryResponseType notaryResponseType;
	private NotaryCertificate notaryCertificate;
	private Object additionalData;

	public Object getAdditionalData()
	{
		return additionalData;
	}

	public void setAdditionalData( Object additionalData )
	{
		this.additionalData = additionalData;
	}

	public NotaryResponse( NotaryResponseType notaryResponseType, NotaryCertificate notaryCertificate )
	{
		this(notaryResponseType, notaryCertificate, null);
	}

	public NotaryResponse( NotaryResponseType notaryResponseType, Object addObject )
	{
		this(notaryResponseType, null, addObject);
	}

	private NotaryResponse( NotaryResponseType notaryResponseType, NotaryCertificate notaryCertificate, Object addObject )
	{
		this.notaryResponseType = notaryResponseType;
		this.notaryCertificate = notaryCertificate;
		this.additionalData = addObject;
	}

	public NotaryResponseType getNotaryResponseType()
	{
		return notaryResponseType;
	}

	public void setNotaryResponseType( NotaryResponseType notaryResponseType )
	{
		this.notaryResponseType = notaryResponseType;
	}

	public NotaryCertificate getNotaryCertificate()
	{
		return notaryCertificate;
	}

	public void setNotaryCertificate( NotaryCertificate notaryCertificate )
	{
		this.notaryCertificate = notaryCertificate;
	}
}
